/*
 * @Description: 
 * @Author: rendc
 * @Date: 2024-10-12 17:20:34
 * @LastEditors: rendc
 * @LastEditTime: 2024-10-12 17:31:08
 */

/**
 * Test
 */
public class Test {
  public static void main(String[] args) {
    // 师傅可以无限制地制作包子；
    // 每个顾客只能买到一个包子；
    // 一位包子铺师傅和三个顾客
    BaoZiShop baoZiShop = new BaoZiShop();
    Thread chef = new Thread(new Chef(baoZiShop));
    chef.start();
    Thread c1 = new Thread(new Customer(baoZiShop));
    Thread c2 = new Thread(new Customer(baoZiShop));
    Thread c3 = new Thread(new Customer(baoZiShop));
    c1.start();
    c2.start();
    c3.start();

  }

}